"""定义与搜索相关的模型类的文件."""
from fastapi import Query
from pydantic import BaseModel, Field


class SearchRequest(BaseModel):
    """搜索请求模型"""
    sca: str = Field(Query(default="", title="分类", description="搜索分类"))
    stx: str = Field(Query(default="", title="搜索词", description="搜索词"))
    sfl: str = Field(Query(default="", title="搜索字段", description="要搜索的字段"))
